﻿using System;

using FinlogiK.FxCop.Statistics.Windows.Data.StatisticsDataSetTableAdapters;


namespace FinlogiK.FxCop.Statistics.Windows.Data
{
	internal partial class StatisticsDataSet
	{
		internal void Fill(int projectID, DateTime analysisTimestamp, ViolationStatisticType statisticType)
		{
			int convertedStatisticType = (int)statisticType;

			new ViolationSummaryTableAdapter().Fill(this.ViolationSummary, projectID, analysisTimestamp, convertedStatisticType);
			new ViolationDetailsTableAdapter().Fill(this.ViolationDetails, projectID, analysisTimestamp, convertedStatisticType);
		}
	}
}